package com.situ.mall.mapper;

import com.situ.mall.pojo.User;
import com.situ.mall.pojo.query.UserQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectByPage(@Param("offset") int offset, @Param("limit") Integer limit, @Param("userQuery") UserQuery userQuery);
    int selectTotalCount(UserQuery userQuery);
    int deleteAll(Integer[] ids);
    User login(String username, String password);

}